<!DOCTYPE html>
<html>
<head>
    <meta  content="text/html; charset=utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
    <Link Rel="SHORTCUT ICON" href="http://www.jd.com/favicon.ico">
    <title>{{$conf -> wz_title}}| {{$title}}</title>
    <link type="text/css" rel="stylesheet"  href="{{asset('/home/css/fi000001.css')}}">
    <script src="{{asset('/home/js/jquery-1.8.3.min.js')}}"></script>
</head>
<body>
<!-- SDK 登录 -->
    <div class="w">
            <div id="logo">
            <a href="/" ><img src="{{asset('/home/img/logo-201305-b.png')}}"  alt="京东" width="170" height="60" style="float:left;"></a>
           <!--  <b></b> -->
           <img src="{{asset('/home/img/l-icon.png')}}" style="margin-top:10px;margin-left:20px;">
            </div>
    </div>
    <div id="content">
        <div class="login-wrap">
            <div class="w">
                <div class="login-form">
                    <div class="login-box">
                        <div class="mt">
                            <h1>京东会员</h1>
                            <div class="extra-r">
                                <div class="regist-link"><a href="/home/reg/add" target="_blank"><b></b>立即注册</a></div>
                            </div>
                        </div>
                        <div class="msg-wrap">
                            <div class="msg-warn"><b></b>公共场所不建议自动登录，以防账号丢失</div>
                            @if(session('error'))
                            <div class="msg-error"><b></b>{{ session('error') }}</div>
                            @endif
                            @if(count($errors) > 0)
                                @foreach($errors -> all() as $error)
                                    <div class="msg-error"><b></b>{{ $error }}</div>
                                @endforeach
                            @endif
                        </div>
                        <div class="mc">
                    
                    <div class="form">
                    <form method="post" action="{{url('dologin')}}">
                        {{csrf_field()}}  
                        <div class="item item-fore1">
                            <label for="loginname" class="login-label name-label" for="loginname"></label>
                            <input id="loginname" type="text" class="itxt" name="username" tabindex="1" autocomplete="off"
                            placeholder="邮箱/用户名/已验证手机" />
                            <span class="clear-btn"></span>
                        </div>
                        <div id="entry" class="item item-fore2">
                            <label class="login-label pwd-label" for="nloginpwd"></label>
                            <label id="sloginpwd" style="display: none;">
                                                                        </label>
                            <input type="password" id="nloginpwd" name="password" class="itxt itxt-error" tabindex="2" autocomplete="off" placeholder="密码"/>
                        </div>
                        <div class="item item-fore3">
                            <div class="safe">
                            <span>
                                <input id="autoLogin" name="chkRememberMe" type="checkbox" class="jdcheckbox" tabindex="3"  clstag="pageclick|keycount|20150112ABD|6">
                                <label for="">自动登录</label>
                            </span>
                             <span class="forget-pw-safe">
                                <a href="/reset"  class="" target="_blank" clstag="pageclick|keycount|20150112ABD|8">忘记密码?</a>
                            </span>
                            </div>
                            
                        </div>
                        
                        <!-- 验证码 -->
                        <div id="o-authcode" class="item item-vcode item-fore4   ">
                            <input id="authcode" type="text" class="itxt itxt02" name="code" tabindex="5">
                                <a onclick="javascript:re_captcha();" ><img src="{{ URL('createcode/1') }}"  alt="验证码" title="刷新图片" width="100" height="40" id="c2c98f0de5a04167a9e427d883690ff6" border="0">看不清,换一张</a>

                            <script>  
                                function re_captcha() {
                                    $url = "{{ URL('createcode') }}";
                                    $url = $url + "/" + Math.random();
                                    document.getElementById('c2c98f0de5a04167a9e427d883690ff6').src=$url;
                                }
                            </script>
                                        
                        </div>
                        <div class="item item-fore5">
                            <div class="login-btn">
                                <input type="submit" class="btn-img btn-entry" id="loginsubmit" style="width:305px;height:34px;"value="登　　录">
                            </div>
                        </div>
                    </form>
                    </div>

                    </div>
                </div>
            </div>
            <div class="login-banner" clstag="pageclick|keycount|20150112ABD|46">
                <div class="w">
                    <div id="banner-bg" class="i-inner"  clstag="pageclick|keycount|20150112ABD|46" style="background: url(/home/img/5731485aN1134b4f0.png) 0px 0px no-repeat;background-color: #e93854">
                    </div>
                </div>
            </div>
        </div>
    </div>
 
    <div class="w">
        <div id="footer-2013">
            <div class="links">
            @foreach($link as $lk)
                <a rel="nofollow" target="_blank" href="#" >
                    {{$lk -> linkname}}
                </a>
            @endforeach
                <!-- <a rel="nofollow" target="_blank" href="#" >
                    关于我们
                </a>
                |
                <a rel="nofollow" target="_blank" href="#">
                    联系我们
                </a>
                |
                <a rel="nofollow" target="_blank" href="#">
                    人才招聘
                </a>
                |
                <a rel="nofollow" target="_blank" href="#">
                    商家入驻
                </a>
                |
                <a rel="nofollow" target="_blank" href="#">
                    广告服务
                </a>
                |
                <a rel="nofollow" target="_blank" href="#">
                    手机京东
                </a>
                |
                <a target="_blank" href="#">
                    友情链接
                </a>
                |
                <a target="_blank" href="#">
                    销售联盟
                </a>
                |
                <a href="#"  target="_blank">
                    京东社区
                </a>
                |
                <a href="#" target="_blank">
                    京东公益
                </a>
                |
                <a target="_blank" href="#">English Site</a> -->
            </div>
            <div class="copyright">
                Copyright&copy;2004-2016&nbsp;&nbsp;京东JD.com&nbsp;版权所有
            </div>
        </div>
    </div>    
    <script>
        //登录框获取焦点 和 失去焦点
        $("input[type=text]").on('focus',function(){
            $(this).css('border','1px solid green');
        });
        $("input[type=text]").on('blur',function(){
            $(this).css('border','1px solid gray')
        });
        $("input[type=password]").on('focus',function(){
            $(this).css('border','1px solid green');
        });
        $("input[type=password]").on('blur',function(){
            $(this).css('border','1px solid gray')
        });
    </script>
    </body>
</html>

